GET
/
v1
/
system
/
userRoles
/
{type}
List all User Roles
curl --request GET \
  --url https://{client_id}.shipstream.app/api/global/v1/system/userRoles/{type}
{
  "collection": [
    {
      "type": "OrganizationUserRole",
      "id": 3,
      "name": "Administrators",
      "permissions": [
        "warehouse",
        "warehouse/staff",
        "warehouse/staff/time_entry_log",
        "warehouse/staff/time_management",
        "warehouse/staff/time_management/excluded",
        "warehouse/staff/time_management/status_dashboard"
      ]
    }
  ],
  "has_more": true,
  "next": "<string>",
  "previous": "<string>",
  "meta": {
    "processing_time": 0.2525252525,
    "cursor_start": 123,
    "cursor_end": 123,
    "count": 123
  }
}

Path Parameters

type
enum<string>
required

Specify the user type to which your operations will be restricted.

Available options:
any,
organization,
client

Query Parameters

filter
string

Using the filtering syntax, you may filter the results using the following fields:

  • id
  • name
sort
string

The default sort order is descending by primary key (sort=-id). The following fields are available for sorting:

  • id
  • name
count
integer

If specified as 1, the meta.count property of the response will be present and populated with the total count of items matching the query before any paging is applied. This is not included by default to improve performance in some edge cases and is not required to perform paging using the next property of the response. See paging parameters for more information.

Required range: 0 <= x <= 1
cursor_end
integer

A cursor for use in pagination which defines the last id of the next page of results, non-inclusive. See paging parameters for more information on paging.

cursor_start
integer

A cursor for use in pagination which defines the starting id of the next page of results. See paging parameters for more information on paging.

limit
integer
default:100

A limit on the number of objects to be returned.

Required range: 1 <= x <= 1000
Example:

100

Response

200
application/json

A dictionary with a collection property that contains an array of up to limit UserRole objects. If no users are found the array will be empty.

The response is of type object.